<%-- 
    Document   : exam-details-removeq-action
    Created on : Feb 19, 2012, 4:38:41 PM
    Author     : PhucAn
--%>

<%@page import="util.SharingUtil"%>
<%@page import="dao.QuestionSetDAO"%>
<%
try{
    QuestionSetDAO daoQS = new QuestionSetDAO();
     int questionId = Integer.parseInt(request.getParameter("qid"));
    int exid = Integer.parseInt(request.getParameter("exid"));
   

    if (daoQS.delete(exid, questionId) > 0) {
        out.print("Question is removed from this exam");
    } else {
        out.print("Action failed");
    }
}catch(NumberFormatException ex){
    out.println("Error");
}
%>